package com.hksj.call.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author chenxingqing
 */
@Data
@ApiModel
@TableName("call_order")
public class CallOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "设备标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "房间名称")
    @TableField("room_name")
    private String roomName;

    @ApiModelProperty(value = "状态  0 = 未完成  1 = 完成")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "语音播报内容")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "播报状态  0 = 未播报 1 = 已播报")
    @TableField("play_status")
    private Integer playStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

}
